package com.puff.framework.threadlocal;

/**
 */
public class FastThread extends Thread {

	private FastThreadLocalMap threadLocalMap;

	public FastThread() {
	}

	public FastThread(Runnable target) {
		super(target);
	}

	public FastThread(ThreadGroup group, Runnable target) {
		super(group, target);
	}

	public FastThread(String name) {
		super(name);
	}

	public FastThread(ThreadGroup group, String name) {
		super(group, name);
	}

	public FastThread(Runnable target, String name) {
		super(target, name);
	}

	public FastThread(ThreadGroup group, Runnable target, String name) {
		super(group, target, name);
	}

	public FastThread(ThreadGroup group, Runnable target, String name, long stackSize) {
		super(group, target, name, stackSize);
	}

	/**
	 * Returns the internal data structure that keeps the thread-local variables bound to this thread.
	 * Note that this method is for internal use only, and thus is subject to change at any time.
	 */
	public final FastThreadLocalMap threadLocalMap() {
		return threadLocalMap;
	}

	/**
	 * Sets the internal data structure that keeps the thread-local variables bound to this thread.
	 * Note that this method is for internal use only, and thus is subject to change at any time.
	 */
	public final void setThreadLocalMap(FastThreadLocalMap threadLocalMap) {
		this.threadLocalMap = threadLocalMap;
	}
}
